package com.lill.system.service;

import java.util.List;
import java.util.Map;
import java.util.concurrent.TimeUnit;

public interface ICommonRedisService {

	final static String phoneCode="phoneCodePage:";
	
	String getStringValueByKey(String key);
	
	void setKeyStringValueString(String key,String val);
	
	void setKeyStringValueStringWithTime(String key,String val,long time,TimeUnit unit);
	
	Integer getIntegerValueByKey(String key);
	
	void setKeyStringValueInteger(String key,Integer val);
	
	void setKeyStringValueIntegerWithTime(String key,Integer val,long time,TimeUnit unit);
	
	Map<String, Object> getMapValueByKey(String key);
	
	void setKeyStringValueMap(String key,Map<String, Object> val);

	void setKeyStringValueMapWithTime(String key,Map<String, Object> val,long time,TimeUnit unit);
	
	void delDateByKeyString(String key);

	void deleteAppTokens(String authToken);
	
	void setKeyStringValueListStringWithTime(String key, List<String> val,long time, TimeUnit unit);
}
